package com.usbserial.core;

/**
 * Callback for raw byte streams coming from an open serial port.
 */
public interface DataListener {
    void onDataReceived(byte[] data);

    void onError(Exception error);
}
